package com.atguigu.day06;

public class Test06 {
    public static void main(String[] args) {
        Test06 t6 = new Test06();
        System.out.println(t6.Fibonacci(24));
    }

    int Fibonacci(int n) {
        if (n == 1 || n == 2) {
            return 1;
        } else
            return Fibonacci(n - 1) + Fibonacci(n - 2);
    }
}

